package com.sisy.mapper;

import com.sisy.poji.AccountDO;
import com.sisy.poji.StorageDO;
import org.apache.ibatis.annotations.Param;

/**
 * @author EJ
 * @date 2021-06-13 15:57
 */
public interface OrderMapper {

    AccountDO getAccountByUserId(String userId);

    AccountDO getAccountByUserIdUpdate(String userId);

    StorageDO getStorageByCommodityCode(String commodityCode);

    StorageDO getStorageByCommodityCodeUpdate(String commodityCode);

    int updateStorageCount(@Param("count") int count,
                           @Param("commodityCode") String commodityCode);

    int updateAccountMoney(@Param("money") int money,
                           @Param("userId") String userId);
}
